Skip to content

Conversation

@Rotheem
Copy link
Member

@Rotheem Rotheem commented Jun 26, 2025

Description

Please explain the changes you made here.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the documentation, if necessary

@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

❌ Patch coverage is 95.76271% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.89%. Comparing base (f201acd) to head (957c79d).

Files with missing lines Patch % Lines
app/modules/phonebook/endpoints_phonebook.py 92.50% 3 Missing ⚠️
app/modules/phonebook/cruds_phonebook.py 95.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #759      +/-   ##
==========================================
+ Coverage   85.81%   85.89%   +0.08%     
==========================================
  Files         177      177              
  Lines       12134    12183      +49     
==========================================
+ Hits        10413    10465      +52     
+ Misses       1721     1718       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@armanddidierjean armanddidierjean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You should use a dependency instead of is_user_member_of_any_group

@armanddidierjean armanddidierjean changed the title feat: use modular association groupements feat(phonebook): use modular association groupements Jun 26, 2025
Comment on lines 72 to 80
async def get_all_kinds(
user: models_users.CoreUser = Depends(is_user_an_ecl_member),
db: AsyncSession = Depends(get_db),
):
"""
Return all available kinds of from Kinds enum.
"""
kinds = await cruds_phonebook.get_all_kinds()
return schemas_phonebook.KindsReturn(kinds=kinds)
return await cruds_phonebook.get_all_groupements(db)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider replacing both occurrences of kinds

Copy link
Member

@Marc-Andrieu Marc-Andrieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@Rotheem Rotheem force-pushed the PROXI-54-modular-association-groupements branch from 833474f to df6d05e Compare June 28, 2025 00:19
@Rotheem Rotheem force-pushed the PROXI-54-modular-association-groupements branch from df6d05e to b3a027c Compare July 28, 2025 08:18
@Rotheem Rotheem force-pushed the PROXI-54-modular-association-groupements branch from 45b4497 to dd3b1a5 Compare July 28, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants